/* 预约详情页面样式 */
:root {
    /* 基本颜色 */
    --pending-color: #ffa726;
    --pending-light: #fff3e0;
    --ongoing-color: #42a5f5;
    --ongoing-light: #e3f2fd;
    --completed-color: #66bb6a;
    --completed-light: #e8f5e9;
    --cancelled-color: #f48fb1;
    --cancelled-light: #fce4ec;
    
    /* 尺寸和间距 */
    --card-border-radius: 12px;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --header-height: 56px;
    --section-padding: 20px;
}

/* 页面基础样式 */
body {
    background-color: #f8f9fa;
    color: #333;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
}

.app-container {
    max-width: var(--iphone15-width, 390px);
    margin: 0 auto;
    background-color: #f8f9fa;
    min-height: 100vh;
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 0));
}

/* 头部导航栏 */
.page-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    box-sizing: border-box;
}

.back-button {
    border: none;
    background: none;
    font-size: 20px;
    color: #333;
    padding: 0 10px 0 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    margin-right: 30px; /* 补偿返回按钮宽度 */
}

.main-content {
    padding: 15px;
}

/* 详情卡片样式 */
.detail-card {
    background-color: #fff;
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 15px;
}

/* 卡片头部样式 */
.card-header {
    padding: var(--section-padding);
    position: relative;
}

.status-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1;
}

.pending-banner {
    background: linear-gradient(to bottom, rgba(255, 167, 38, 0.12), rgba(255, 167, 38, 0.05));
}

.ongoing-banner {
    background: linear-gradient(to bottom, rgba(66, 165, 245, 0.12), rgba(66, 165, 245, 0.05));
}

.completed-banner {
    background: linear-gradient(to bottom, rgba(102, 187, 106, 0.12), rgba(102, 187, 106, 0.05));
}

.cancelled-banner {
    background: linear-gradient(to bottom, rgba(244, 143, 177, 0.12), rgba(244, 143, 177, 0.05));
}

/* 经纪人信息样式 */
.agent-profile {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.agent-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-right: 15px;
}

.agent-details {
    flex: 1;
}

.agent-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.agent-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.agent-rating {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #ffa726;
}

.agent-rating i {
    margin-right: 3px;
}

/* 状态标签样式 */
.status-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 100px;
    font-weight: 500;
    margin-left: 10px;
}

.status-pending {
    background-color: var(--pending-light);
    color: var(--pending-color);
}

.status-ongoing {
    background-color: var(--ongoing-light);
    color: var(--ongoing-color);
}

.status-completed {
    background-color: var(--completed-light);
    color: var(--completed-color);
}

.status-cancelled {
    background-color: var(--cancelled-light);
    color: var(--cancelled-color);
}

/* 卡片内容区域通用样式 */
.card-section {
    padding: 15px var(--section-padding);
    border-bottom: 1px solid #f5f5f5;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* 详情行样式 */
.detail-row {
    display: flex;
    margin-bottom: 12px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    width: 80px;
    color: #888;
    font-size: 14px;
}

.detail-value {
    flex: 1;
    color: #333;
    font-size: 14px;
}

/* 按钮样式 */
.action-button {
    margin-top: 5px;
    padding: 10px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    border: none;
}

.action-primary {
    background-color: #4a6fee;
    color: white;
}

.action-primary:hover {
    background-color: #3b5dc9;
}

.action-secondary {
    background-color: #f1f3f5;
    color: #495057;
}

.action-secondary:hover {
    background-color: #e9ecef;
}

.action-danger {
    background-color: #fff5f7;
    color: #e74c3c;
}

.action-danger:hover {
    background-color: #ffe8ec;
}

.actions-container {
    display: flex;
    gap: 10px;
}

.actions-container .action-button {
    flex: 1;
}

/* 支付信息样式 */
.payment-info {
    padding: 15px;
    background-color: #f8faff;
    border-radius: 8px;
    margin-top: 10px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.payment-row:last-child {
    margin-bottom: 0;
    padding-top: 6px;
    border-top: 1px dashed #e9e9e9;
    font-weight: 600;
}

/* 进度条样式 - 陪跑中状态专用 */
.progress-container {
    margin-bottom: 15px;
}

.progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4a6fee;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

/* 评价区域样式 - 已完成状态专用 */
.stars-container {
    display: flex;
    margin-bottom: 10px;
}

.star {
    color: #ffc107;
    font-size: 24px;
    margin-right: 5px;
}

.rating-comment {
    background-color: #f8faff;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

/* 底部固定按钮样式 */
.fixed-bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    padding-bottom: calc(15px + env(safe-area-inset-bottom, 0));
}

/* 联系客服样式 */
.contact-support {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

.contact-support i {
    margin-right: 5px;
}

.contact-support a {
    color: #4a6fee;
    text-decoration: none;
}

/* 状态特定内容容器 */
#status-specific-content {
    display: none; /* 默认隐藏，将根据状态动态显示 */
}

/* 各状态专有容器 */
#pending-content, #ongoing-content, #completed-content, #cancelled-content {
    display: none;
}

/* 针对暗色模式的调整 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .app-container {
        background-color: #121212;
    }
    
    .page-header {
        background-color: #1e1e1e;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .back-button {
        color: #e0e0e0;
    }
    
    .detail-card {
        background-color: #1e1e1e;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .card-section {
        border-bottom-color: #333;
    }
    
    .section-title {
        color: #e0e0e0;
    }
    
    .detail-label {
        color: #aaa;
    }
    
    .detail-value {
        color: #e0e0e0;
    }
    
    .payment-info {
        background-color: #252525;
    }
    
    .payment-row:last-child {
        border-top-color: #444;
    }
    
    .action-secondary {
        background-color: #333;
        color: #e0e0e0;
    }
    
    .action-secondary:hover {
        background-color: #444;
    }
    
    .action-danger {
        background-color: rgba(231, 76, 60, 0.1);
    }
    
    .action-danger:hover {
        background-color: rgba(231, 76, 60, 0.2);
    }
    
    .rating-comment {
        background-color: #252525;
    }
    
    .fixed-bottom-actions {
        background-color: #1e1e1e;
    }
}

/* 针对iPhone 15适配的媒体查询 */
@media screen and (width: 390px) and (height: 844px) {
    :root {
        --section-padding: 16px;
    }
    
    .app-container {
        min-height: 100vh;
        height: 100%;
    }
    
    .main-content {
        padding: 12px;
    }
} 